import request from '@/utils/request'

const url = 'auth/'

export function captcha(data) {
  return request({
    url: url + 'captcha',
    method: 'POST',
    data
  })
}

export function login(data) {
  return request({
    url: url + 'login',
    method: 'POST',
    data
  })
}

export function register(data) {
  return request({
    url: url + 'register',
    method: 'POST',
    data
  })
}

export function sendEmailCode(data) {
  return request({
    url: url + 'reset/sendEmailCode',
    method: 'POST',
    data
  })
}

export function checkEmailCode(data) {
  return request({
    url: url + 'reset/checkEmailCode',
    method: 'POST',
    data
  })
}

// export function info(data) {
//   return request({
//     url: url + 'info',
//     method: 'POST',
//     data
//   })
// }